package com.xxxx.utils;

import java.io.UnsupportedEncodingException;

/**
 * @Author Lionel
 * @Date 2021/3/8 22:20
 * Created by IntelliJ IDEA 2020.1.
 * Project: house
 * Description：字符串处理工具类
 */
public class StringUtil {
    public static String encodeStr(String str) {
        try {
            return new String(str.getBytes("ISO-8859-1"), "UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            return null;
        }
    }
}
